<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TrabalhodeSistemasOperacionais: Código-Fonte de threadcaixa.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Gerado por Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TrabalhodeSistemasOperacionais&#160;<span id="projectnumber">1.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;Principal</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;Arquivos</span></a></li>
      <li><a href="globals.html"><span>Arquivos&#160;Membros</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>threadcaixa.h</h1>  </div>
</div>
<div class="contents">
<a href="threadcaixa_8h.html">Vá para a documentação deste arquivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef THREADCAIXA_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define THREADCAIXA_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QThread&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QDebug&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;<a class="code" href="controladorderecursos_8h.html">controladorderecursos.h</a>&quot;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="transacao_8h.html">transacao.h</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;QQueue&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="transacao_8h.html">transacao.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;qtcpsocket.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;QDataStream&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;qhostaddress.h&gt;</span>
<a name="l00014"></a>00014 
<a name="l00016"></a><a class="code" href="classThreadCaixa.html">00016</a> <span class="keyword">class </span><a class="code" href="classThreadCaixa.html">ThreadCaixa</a> : <span class="keyword">public</span> QThread
<a name="l00017"></a>00017 {
<a name="l00018"></a>00018     Q_OBJECT
<a name="l00019"></a>00019 <span class="keyword">public</span>:
<a name="l00020"></a>00020 
<a name="l00021"></a>00021     <span class="keyword">explicit</span> <a class="code" href="classThreadCaixa.html#a22a1217fef61a24a5a2dcde15e58e17f">ThreadCaixa</a>(QObject *parent = 0);
<a name="l00022"></a>00022 
<a name="l00025"></a>00025     <a class="code" href="classThreadCaixa.html#a22a1217fef61a24a5a2dcde15e58e17f">ThreadCaixa</a>(<a class="code" href="classControladorDeRecursos.html">ControladorDeRecursos</a>* <a class="code" href="classThreadCaixa.html#ac6ff4bcec4523e5c1dc1e5a0c54ae065">controladorDeRecursos</a>,QQueue&lt;Transacao&gt; * <a class="code" href="classThreadCaixa.html#a6dac141a7664d46b1a3a228e97b0c006">fila</a>, QQueue&lt;Transacao&gt; * <a class="code" href="classThreadCaixa.html#adb80c8b80212fe4c705f71d05c465e9e">filaPrioritaria</a>);
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 
<a name="l00028"></a><a class="code" href="classThreadCaixa.html#a6dac141a7664d46b1a3a228e97b0c006">00028</a>     QQueue&lt;Transacao&gt; * <a class="code" href="classThreadCaixa.html#a6dac141a7664d46b1a3a228e97b0c006">fila</a>;
<a name="l00029"></a><a class="code" href="classThreadCaixa.html#adb80c8b80212fe4c705f71d05c465e9e">00029</a>     QQueue&lt;Transacao&gt; * <a class="code" href="classThreadCaixa.html#adb80c8b80212fe4c705f71d05c465e9e">filaPrioritaria</a>;
<a name="l00030"></a>00030 <span class="comment">//    bool efetuaTransacao(Transacao *transacao);</span>
<a name="l00031"></a>00031 
<a name="l00034"></a>00034     QString <a class="code" href="classThreadCaixa.html#a7b57b3072c25e549b8133b0b9b53b33a">comunicaAgenciaX</a>(<span class="keywordtype">int</span> x,QString mensagem);
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 
<a name="l00039"></a>00039     <span class="keywordtype">void</span> <a class="code" href="classThreadCaixa.html#ac99196d6d9fe87ba14209ebaa002ef11">run</a>();
<a name="l00041"></a><a class="code" href="classThreadCaixa.html#a16f370d44a609f09d38f2dcee51438c8">00041</a>     <span class="keywordtype">int</span> <a class="code" href="classThreadCaixa.html#a5de1e3c2eea04745e3ad864b26d5d9e2">agenciaAlfa</a>,<a class="code" href="classThreadCaixa.html#a16f370d44a609f09d38f2dcee51438c8">agenciaBeta</a>;
<a name="l00044"></a><a class="code" href="classThreadCaixa.html#ae785b4730d985ca7b162af87656e721e">00044</a>     <span class="keywordtype">int</span> <a class="code" href="classThreadCaixa.html#ae785b4730d985ca7b162af87656e721e">chequeEspecial</a>;
<a name="l00045"></a>00045 
<a name="l00048"></a>00048     <span class="keywordtype">bool</span> <a class="code" href="classThreadCaixa.html#ac6e495c257026a58fd60d9d422914f7e">realizarTransacao</a>(<a class="code" href="classTransacao.html">Transacao</a> *);
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 
<a name="l00053"></a><a class="code" href="classThreadCaixa.html#ac6ff4bcec4523e5c1dc1e5a0c54ae065">00053</a>     <a class="code" href="classControladorDeRecursos.html">ControladorDeRecursos</a>* <a class="code" href="classThreadCaixa.html#ac6ff4bcec4523e5c1dc1e5a0c54ae065">controladorDeRecursos</a>;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 signals:
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="keyword">public</span> slots:
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 };
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="preprocessor">#endif // THREADCAIXA_H</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Gerado em Terça, 6 de Dezembro de 2011 01:44:55 para TrabalhodeSistemasOperacionais por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
